package com.cp.admin.modular.system.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 系统支持的ETH公链币种
 * </p>
 *
 * @author yy123
 * @since 2020-04-30
 */
@TableName("sys_eth_token")
public class EthToken extends Model<EthToken> {

    private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 代币名称
     */
    @TableField("token_name")
    private String tokenName;
    /**
     * 代币编码
     */
    @TableField("token_code")
    private String tokenCode;
    /**
     * 代币logo
     */
    @TableField("coin_logo")
    private String coinLogo;
    /**
     * 公链名称
     */
    @TableField("public_chain")
    private String publicChain;
    /**
     * 合约地址
     */
    private String contract;
    /**
     * 当前价格
     */
    private BigDecimal price;
    /**
     * USD单价
     */
    @TableField("price_usd")
    private BigDecimal priceUsd;
    /**
     * 0主代币 1erc20代币
     */
    private Integer type;
    /**
     * 0正常 1禁止
     */
    private Integer status;
    /**
     * 精度
     */
    private Integer precision;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTokenName() {
        return tokenName;
    }

    public void setTokenName(String tokenName) {
        this.tokenName = tokenName;
    }

    public String getTokenCode() {
        return tokenCode;
    }

    public void setTokenCode(String tokenCode) {
        this.tokenCode = tokenCode;
    }

    public String getCoinLogo() {
        return coinLogo;
    }

    public void setCoinLogo(String coinLogo) {
        this.coinLogo = coinLogo;
    }

    public String getPublicChain() {
        return publicChain;
    }

    public void setPublicChain(String publicChain) {
        this.publicChain = publicChain;
    }

    public String getContract() {
        return contract;
    }

    public void setContract(String contract) {
        this.contract = contract;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getPriceUsd() {
        return priceUsd;
    }

    public void setPriceUsd(BigDecimal priceUsd) {
        this.priceUsd = priceUsd;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getPrecision() {
        return precision;
    }

    public void setPrecision(Integer precision) {
        this.precision = precision;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "EthToken{" +
        "id=" + id +
        ", tokenName=" + tokenName +
        ", tokenCode=" + tokenCode +
        ", coinLogo=" + coinLogo +
        ", publicChain=" + publicChain +
        ", contract=" + contract +
        ", price=" + price +
        ", priceUsd=" + priceUsd +
        ", type=" + type +
        ", status=" + status +
        ", precision=" + precision +
        ", createTime=" + createTime +
        "}";
    }
}
